package com.jeesite.modules.dataScreen.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeesite.modules.dataScreen.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 角色(SysRole)表数据库访问层
 *
 * @since 2024-09-24 15:29:55
 */
public interface SysRoleDao extends BaseMapper<SysRole> {

    List<SysRole> findAllByUserId(@Param("userId") Integer userId);

    Set<String> findAllMenuStrsByRoleId(@Param("roleIds") Collection<Integer> roleIds);

    List<String> findUserNames(@Param("roleId")Integer roleId);
}

